﻿// <copyright file="MockGlobalVariables.cs" company="Ecole Normale Supérieure">
// Released under GPLv2
// </copyright>
// <summary>Contains the Mock for IGlobalVariables Interface</summary>

namespace Sqwarea.Persistence.Mock
{
    /// <summary>
    /// Mock for IGlobalVariables
    /// </summary>
    public class MockGlobalVariables : IGlobalVariables
    {
        /// <summary>
        /// Next king Id
        /// </summary>
        private long _nextKingId = 1;

        /// <summary>
        /// Gets or sets next king Id
        /// WARNING : Only used by Batch to put new Id in the Id queue
        /// </summary>
        public long NextKingId
        {
            get
            {
                return _nextKingId;
            }

            set
            {
                _nextKingId = value;
            }
        }

        /// <summary>
        /// Gets or sets current radius used to create new kings.
        /// New kingdom are placed at newKingsRadius distance from (0,0).
        /// </summary>
        public uint NewKingsRadius { get; set; }
    }
}